f7d6585bdb39f83a1b8660120600e1b806193878,app/src/main/java/com/fieldbook/tracker/MainActivity.java,MainActivity,moveToPlotID,#,3656

Before Change


    }

    private void moveToPlotID() {
        goToId = new Dialog(this, R.style.AppDialog);
        goToId.setTitle(getString(R.string.jumptoplotidbutton));
        goToId.setContentView(R.layout.gotobarcode);

        goToId.setCancelable(true);
        goToId.setCanceledOnTouchOutside(true);

        android.view.WindowManager.LayoutParams langParams = goToId.getWindow().getAttributes();
        langParams.width = LayoutParams.MATCH_PARENT;

After Change


    }

    private void moveToPlotID() {
        AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AppAlertDialog);

        LayoutInflater inflater = this.getLayoutInflater();
        View layout = inflater.inflate(R.layout.gotobarcode, null);

        builder.setTitle(R.string.jumptoplotidbutton)
                .setCancelable(true)
                .setView(layout);

        goToId = builder.create();

        android.view.WindowManager.LayoutParams langParams = goToId.getWindow().getAttributes();
        langParams.width = LayoutParams.MATCH_PARENT;